﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenAPI.Model.API
{

    [Serializable]
    public class MethodUnSignArgumentInfoPK
    {

        public virtual string METHOD_NAME { get; set; }
        public virtual string ARGUMENT_NAME { get; set; }

        /// <summary>
        /// 判断两个对象是否相同，这个方法需要重写
        /// </summary>
        /// <param name="obj">进行比较的对象</param>
        /// <returns>真true或假false</returns>
        public override bool Equals(object obj)
        {
            if (obj is MethodUnSignArgumentInfoPK)
            {
                MethodUnSignArgumentInfoPK o = obj as MethodUnSignArgumentInfoPK;
                if (this.METHOD_NAME == o.METHOD_NAME
                     && this.ARGUMENT_NAME == o.ARGUMENT_NAME)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
